<template>
  <sxs-input type="text" title="用户名" v-model="username" />
  <sxs-input type="number" title="年龄" v-model="age" />
  <sxs-input type="password" title="密码" v-model="password" />
  <button @click="submit">提交</button>
  <button @click="reset">重置</button>
</template>

<script setup>

</script>
<script>
import SxsInput from './sxs-input.vue'
export default {
  components: {
    SxsInput
  },
  data() {
    return {
      username: 'username',
      age: 0,
      password: 'password'
    };
  },
  methods: {
    submit() {
      console.log(this.username, this.age, this.password)
    },
    reset() {

    }
  }
};
</script>

<style>
</style>